﻿using System.Threading.Tasks;
using SmartCity.Shared;
using Volo.Abp.Application.Services;

namespace MetroManagement
{
    /// <summary>
    /// 乘车卡应用服务接口
    /// </summary>
    public interface ICardAppService : IApplicationService
    {
        /// <summary>
        /// 获取
        /// </summary>
        Task<ResultResponse<CardDto>> GetAsync();

        /// <summary>
        /// 领取
        /// </summary>
        /// <param name="input"></param>
        Task<ActionResponse> CreateAsync(CreateCardDto input);

        /// <summary>
        /// 注销
        /// </summary>
        /// <param name="id"></param>
        Task<ActionResponse> DeleteAsync(int id);
    }
}